Python program to find square and cube of given number